package com.hujiang.basic.search.model;

import java.io.Serializable;

import lombok.Data;

@Data
public abstract class HJEsRequest implements Serializable {

    private static final long serialVersionUID = 1L;

    protected String index;
    protected String id;
    protected String type;

    @Override
    public boolean equals(Object obj) {
        if (obj == this) {
            return true;
        }
        else if (null!=obj && this.getClass() != obj.getClass()) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        return this.hashCode();
    }
}
